'use strict';
/**
 * Created by MetaLab_K on 2016/1/26.
 */
angular.module('metalabPartnerApp').controller('searchBarCtrl',['$scope',function($scope){
    $scope.removeKeywords=function(str){
        $scope.keywords.splice($scope.keywords.indexOf(str),1);
    }
}]).directive('searchBar', function () {
    return {
        restrict: 'E',
        templateUrl: 'views/development/meta-search-bar/search-bar.html',
        controller: 'searchBarCtrl',
        scope:{
            searchText:'=',
            keywords:'='
        },
        transclude: true,
        replace: true
    };
});
